/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2018-2019.
 * Description: dying int support for powerpc
 * Author: wangmin <wmin.wang@huawei.com>
 * Create: 2018-10-18
 */

#ifndef _RTOS_DYING_INT_H
#define _RTOS_DYING_INT_H

int request_fiq(void (*dying_callback_func)(unsigned int), unsigned int fiq_num);
int free_fiq(void (*dying_callback_func)(unsigned int), unsigned int fiq_num);
int free_fiq_all(unsigned int fiq_num);
struct pt_regs *fiq_get_regs(void);
int register_ddr_self_refresh_fun(void(*before_self_refresh)(void));
unsigned long long get_dying_time(void);

#endif
